package com.aircms.common;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class ResponseCodeAndMsg {

    private static final Map<Integer, String> map;
    static
    {
        map = new HashMap<Integer, String>();

        map.put(1,"ok");
        map.put(-1,"系统异常，操作失败");
        map.put(-2,"操作失败:");

        map.put(-100,"认证失败:token过期或非法");
        map.put(-101,"token不能为空");
        map.put(-102,"用户名或密码错误");

        map.put(-111,"上传失败");
        map.put(-112,"下载失败");

        map.put(-110,"您没有权限，请联系管理员");

        map.put(-500,"系统异常：");

        map.put(-900,"查无数据");

        map.put(-800,"提交数据不合法：");
    }

    public Map getMap() {
        return map;
    }

}
